package com.hsd.service;

public interface IAccountService {
    /**
     * 存钱
     * @param acc
     * @param money
     * @return
     */
    boolean save(String acc, Double money);

    /**
     * 取钱
     * @param acc
     * @param money
     * @return
     */
    boolean take(String acc, Double money);

    /**
     * 转账
     * @param fromAcc
     * @param toAcc
     * @param money
     * @return
     */
    boolean transfer(String fromAcc, String toAcc, Double money);
}
